import service from "@/utils/service";
import type {IBanner} from "@/myTypes"

// 获取轮播图列表
export const getBannerApi=()=>service.get("/admin/banner/list"); 


// 添加轮播图
export const addBannerApi=(data:IBanner)=>service.post("/admin/banner/add",data); 


// 清空轮播图
export const clearBannerApi=()=>service.get("/admin/banner/removeAll"); 
